import request from '@/utils/request'

export function listRule(data) {
  return request({
    url: '/rule/list',
    method: 'post',
    data
  })
}

export function createRule(data) {
  return request({
    url: '/rule/create',
    method: 'post',
    data
  })
}

export function delRule(data) {
  return request({
    url: '/rule/delete',
    method: 'post',
    data
  })
}

export function updateRule(data) {
  return request({
    url: '/rule/update',
    method: 'post',
    data
  })
}

export function switchRule(data) {
  return request({
    url: '/rule/switchOpen',
    method: 'post',
    data
  })
}

export function syncRule(data) {
  return request({
    url: '/rule/sync',
    method: 'post',
    data
  })
}





